package com.train.system.api.fallback;

import com.train.common.enums.impl.SysExceptionEnums;
import com.train.common.resp.CommonResp;
import com.train.system.api.TrainCarriageApi;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class TrainCarriageApiFallback implements TrainCarriageApi {

    @Override
    public CommonResp getTrainCarriageListByTrainCodes(List<String> trainCodes) {
        return CommonResp.error(SysExceptionEnums.EXP_DEGRADE);
    }
}
